const express = require('express')
const router = express.Router()
const permissionTemplateController = require('../controllers/permissionTemplate')
const auth = require('../middleware/auth')

// 获取模板列表
router.get('/', auth, permissionTemplateController.getList)

// 创建模板
router.post('/', auth, permissionTemplateController.create)

// 更新模板
router.put('/:id', auth, permissionTemplateController.update)

// 删除模板
router.delete('/:id', auth, permissionTemplateController.delete)

// 获取模板详情
router.get('/:id', auth, permissionTemplateController.getById)

module.exports = router 